#ifndef QCONFGAMES_H
#define QCONFGAMES_H

class Game;
class QConfGames: public wxPanel
{
public:
	QConfGames(wxWindow *parent);
	~QConfGames();

	void ApplyChanges();

	DECLARE_EVENT_TABLE();

private:
	struct GameConfData
	{
		int selectedUtil;
		Game *game;
		wxString gamePath;
		std::vector<wxString> utilPaths;
	};
	typedef std::vector<GameConfData*> GameConfs;

	void OnGameChoice(wxCommandEvent &ev);
	void OnGameBrowse(wxCommandEvent &ev);
	void OnUtilChoice(wxCommandEvent &ev);
	void OnUtilBrowse(wxCommandEvent &ev);
	void SelectGame();
	void StoreCurrentData();

	wxChoice *gameChoice;
	wxChoice *utilChoice;
	wxTextCtrl *utilPath;
	wxTextCtrl *gamePath;
	GameConfs gameConfs;
	GameConfData *currentGame;
};

#endif //QCONFGENERAL_H
